
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class InputsDemo {
    public static void main(String[] args) throws FileNotFoundException, FileNotFoundException{
    File file=new File("c:\\","2011-04-10.tex");
    FileOutputStream f=new FileOutputStream(file,true);
    PrintWriter p=new PrintWriter(f,true);
    p.println("十点钟去开会");
    p.println("下课后去吃粉");
    System.out.println("成功添加数据");
    
    
    }

}
